﻿function checksearchform() {
    var keyword = document.getElementById("Keywords1");
	if(keyword.value=="")
	{
		alert("请输入关键字!");
		return false;
	}
	else {
	    
	    window.location='list.aspx?Keywords='+keyword.value;
	}
}

function checkloginform()
{
	if(document.getElementById("ctl00$ContentPlaceHolder1$LoginUserControl1$UserName").value=="")
	{
		alert("username can't be empty!");
		return false;
	}
	else if(document.getElementById("ctl00$ContentPlaceHolder1$LoginUserControl1$Password").value=="")
	{
		alert("password can't be empty!");
		return false;
	}
	else{
	 alert("GREAT");
	  // frmlogin.submit();
	}
}



/*这里开始时UrlEncode和UrlDecode函数*/ 
